-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(languages): GraphQL #1515
feat(languages): GraphQL #1515
Conversation
If you run |
0219618
to
194f46c
Compare
Would it be any trouble to add this to the injections file for JavaScript, for named template strings of the form: local query = gql`...` That would cover anywhere Apollo client is used, which I think is the most common library for forming queries in react and vue. |
I think this should do it: ; runtime/queries/javascript/injections.scm
((call_expression
function: (identifier) @ignore
arguments: (template_string) @injection.content)
(#eq? @ignore "gql")
(#set! injection.language "graphql")) |
Added! |
Friendly ping @archseer @the-mikedavis 😃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, nice work!
Hey there,
This PR adds support for Graphql!